export class Local {
  get(key: string) {
    const value: any = localStorage.getItem(key);

    return value
  }
  set(key: string, value: any) {
    localStorage.setItem(key, value)
  }
  remove(key: string) {
    localStorage.removeItem(key)
  }
  clear() {
    sessionStorage.clear()
  }
}

export class Session {
  get(key: string) {
    sessionStorage.getItem(key)
  }
  set(key: string, value: any) {
    sessionStorage.setItem(key, value)
  }
  remove(key: string) {
    sessionStorage.removeItem(key)
  }
  clear() {
    sessionStorage.clear()
  }
}

export class Store {
  getLocal(key: string) {
    const value: any = localStorage.getItem(key);
    return value
  }
}

export default Store
